package hzjbbis.framework.workflow.util;

import java.util.Map;

import com.opensymphony.module.propertyset.PropertySet;
import com.opensymphony.workflow.FunctionProvider;
import com.opensymphony.workflow.WorkflowException;

public class StepOwner implements FunctionProvider {
    public static final String STEP_OWNER = "stepOwner";

    public void execute(Map transientVars, Map args, PropertySet ps)
            throws WorkflowException {
        String stepOwner = (String) transientVars.get("userid");
        if (stepOwner == null) {
            stepOwner = "";
        }
        transientVars.put(STEP_OWNER, stepOwner);
    }
}
